package com.kod.util;

import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetLoaderParameters;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader;
import com.badlogic.gdx.assets.loaders.FileHandleResolver;
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;
import com.badlogic.gdx.utils.Array;

public class Loader
		extends
		AsynchronousAssetLoader<FreeTypeFontGenerator, Loader.FreeTypeFontGeneratorParameter> {
	public Loader(FileHandleResolver resolver) {
		super(resolver);
	}

	static public class FreeTypeFontGeneratorParameter extends
			AssetLoaderParameters<FreeTypeFontGenerator> {
	}

//	@Override
//	public FreeTypeFontGenerator load(AssetManager arg0, String arg1,
//			FreeTypeFontGeneratorParameter arg2) {
//		return new FreeTypeFontGenerator(resolve(arg1));
//	}

	@Override
	public Array<AssetDescriptor> getDependencies(String arg0,
			FreeTypeFontGeneratorParameter arg1) {
		return null;
	}
	FreeTypeFontGenerator font;
	@Override
	public void loadAsync(AssetManager arg0, String arg1,
			FreeTypeFontGeneratorParameter arg2) {
		// TODO Auto-generated method stub
		font =null;
		font =new FreeTypeFontGenerator(resolve(arg1));
		
	}

	@Override
	public FreeTypeFontGenerator loadSync(AssetManager arg0, String arg1,
			FreeTypeFontGeneratorParameter arg2) {
		return font;
	}

}
